package com.taptech.doufu.bean;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Created by longsiyang on 16/4/8.
 */
public class DFHomeBannerBean implements Serializable
{

    private ImageBean images[];
    private String object_type;
    private String banner_img;
    private String name;
    private String title;
    private String status;
    private String community_type;
    private String community_id;
    private String icon_url;
    private String introduce;
    private String master_name;
    private String member_counts;
    private String des;
    private String id;
    private String topic_type;
    private String topicId;
    private String url;
    private String banner_link;
    private String type;
    private String master_uid;
    private boolean is_ad;


    public boolean isIs_ad() {
        return is_ad;
    }

    public void setIs_ad(boolean is_ad) {
        this.is_ad = is_ad;
    }

    //json array string to list<bean>
    public static ArrayList<DFHomeBannerBean> getDFHomeBannerBean(String jsonArrayStr) {
        ArrayList<DFHomeBannerBean> MyBeans = new Gson().fromJson(jsonArrayStr, new TypeToken<ArrayList<DFHomeBannerBean>>(){}.getType());
        return MyBeans;
    }

    public String getMaster_uid()
    {
        return master_uid;
    }

    public void setMaster_uid(String master_uid)
    {
        this.master_uid = master_uid;
    }

    public String getUrl()
    {
        return url;
    }

    public String getBanner_link() {
        return banner_link;
    }

    public void setBanner_link(String banner_link) {
        this.banner_link = banner_link;
    }

    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getType()
    {
        return type;
    }

    public void setType(String type)
    {
        this.type = type;
    }

    public String getTopic_type()
    {
        return topic_type;
    }

    public void setTopic_type(String topic_type)
    {
        this.topic_type = topic_type;
    }

    public String getTopicId()
    {
        return topicId;
    }

    public void setTopicId(String topicId)
    {
        this.topicId = topicId;
    }

    public String getId()
    {
        return id;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getDes()
    {
        return des;
    }

    public void setDes(String des)
    {
        this.des = des;
    }

    public String getIcon_url()
    {
        return icon_url;
    }

    public void setIcon_url(String icon_url)
    {
        this.icon_url = icon_url;
    }

    public String getIntroduce()
    {
        return introduce;
    }

    public void setIntroduce(String introduce)
    {
        this.introduce = introduce;
    }

    public String getMaster_name()
    {
        return master_name;
    }

    public void setMaster_name(String master_name)
    {
        this.master_name = master_name;
    }

    public String getMember_counts()
    {
        return member_counts;
    }

    public void setMember_counts(String member_counts)
    {
        this.member_counts = member_counts;
    }

    public String getCommunity_type()
    {
        return community_type;
    }

    public void setCommunity_type(String community_type)
    {
        this.community_type = community_type;
    }

    public String getCommunity_id()
    {
        return community_id;
    }

    public void setCommunity_id(String community_id)
    {
        this.community_id = community_id;
    }

    public String getStatus()
    {
        return status;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getTitle()
    {
        return title;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getBanner_img()
    {
        return banner_img;
    }

    public void setBanner_img(String banner_img)
    {
        this.banner_img = banner_img;
    }

    public ImageBean[] getImages()
    {
        return images;
    }

    public void setImages(ImageBean[] images)
    {
        this.images = images;
    }

    public String getObject_type()
    {
        return object_type;
    }

    public void setObject_type(String object_type)
    {
        this.object_type = object_type;
    }
}
